-- GENERATED SPELL FOR [Nether Wraith] --


function spell0_21062(pUnit, Event) --@Nether Explosion,Self--
pUnit:FullCastSpellOnTarget(35058,pUnit)
pUnit:RegisterEvent('Sorts_21062', 1000, 1)
end

function Sorts_21062(pUnit, Event)
local choix_sorts_21062 = math.random(0, 0)
if choix_sorts_21062 == 0 then
pUnit:RegisterEvent('spell0_21062', 1, 1)
end
end

function mob21062_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21062', math.random(1500, 3000), 1)
end

function mob21062_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21062_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21062_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21062, 1, 'mob21062_Action')
RegisterUnitEvent(21062, 2, 'mob21062_Leave')
RegisterUnitEvent(21062, 3, 'mob21062_Kill')
RegisterUnitEvent(21062, 4, 'mob21062_Die')
